package com.wlyuan.open.scanner.utils.enums.tenant;

import com.wlyuan.core.marker.NamedValue;
import com.wlyuan.core.marker.NamedValueMap;
import lombok.AccessLevel;
import lombok.Getter;
import lombok.RequiredArgsConstructor;

import java.util.Map;

/**
 * @author lijing
 * @description 司机租户check类型状态
 */
@RequiredArgsConstructor(access = AccessLevel.PRIVATE)
@Getter
public enum DriverTenantCheckStatusEnum implements NamedValue<Integer> {

    //待审核
    CHECK_WAITE(1, 2, "待审核"),
    //拒绝
    CHECK_REJECT(2, 4, "拒绝"),
    //已同意
    CHECK_OK(0, 3, "已同意"),

    ;

    private final Integer value;
    private final Integer newValue;
    private final String name;


    private static final Map<Integer, DriverTenantCheckStatusEnum> MAP = new NamedValueMap<>(DriverTenantCheckStatusEnum.class);

    public static DriverTenantCheckStatusEnum fromValue(Integer value) {
        return MAP.get(value);
    }
}
